package JAVA;

public class work3153 {
    public static void main(String[] args) {
        //3、静态初始化一维数组{10,20,11,35,6,89}，进行冒泡排序
        int[] num={10,20,11,35,6,89};
        int temp;
        for (int i=0;i<num.length;i++){
            for (int j=0;j< num.length-1;j++){
                if (num[j]>num[j+1]){
                    temp=num[j];
                    num[j]=num[j+1];
                    num[j+1]=temp;
                }
            }
        }
        for (int i=0;i< num.length;i++){
            System.out.printf(num[i]+",");
        }
    }
}
